
local token_key = "token:" .. ARGV[1]
local uid = redis.call("GET", token_key)
-- 1. 检查 Token 是否存在
if not uid or uid == '' then
    return nil
end
-- 2. 提取真实 UID（假设值是 "uid:123456"）  string.gsub(uid, "uid:", "")
local user_key = "u:" .. uid
-- 3. 获取用户信息
local userinfo = redis.call("GET", user_key)
return userinfo
